package com.kandinfo.base.security.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.kandinfo.base.admin.domain.BaseDomain;

@Entity
@Table(name = "perm")
public class Permission extends BaseDomain implements Serializable {

	private static final long serialVersionUID = 1L;

	public static final Integer MENU = 0;

	public static final Integer BUTTON = 1;
	
	@Column(name = "perm_name")
	private String permName;

	@Column(name = "perm_desc")
	private String permDesc;

	@Column(name = "perm_type")
	private Integer type;

	@Column(name = "parent_id")
	private Long parentId;
	
	@Column(name = "acl")
	private String acl;
	
	@Column(name = "icon")
	private String icon;
	
	@Column(name = "device")
	private String device;
	
	@Column(name = "index")
	private int index;
	
	@Column(name = "default_menu")
	private String defaultMenu;//第一屏默认菜单：Y-首页默认显示，N-不是
	
	public Permission() {

	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getDevice() {
		return device;
	}

	public void setDevice(String device) {
		this.device = device;
	}
	public String getPermName() {
		return permName;
	}

	public void setPermName(String permName) {
		this.permName = permName;
	}

	public String getPermDesc() {
		return permDesc;
	}

	public void setPermDesc(String permDesc) {
		this.permDesc = permDesc;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getAcl() {
		return acl;
	}

	public void setAcl(String acl) {
		this.acl = acl;
	}

	public String getDefaultMenu() {
		return defaultMenu;
	}

	public void setDefaultMenu(String defaultMenu) {
		this.defaultMenu = defaultMenu;
	}

}
